// 计数器相关

import { defineStore } from "pinia"
import { ref } from "vue"

export const useCountStore = defineStore(
  "big-user",
  () => {
    const count = ref(0)
    const setCount = (n) => {
      count.value++
      n
    }

    return {
      count,
      setCount,
    }
  },
  { persist: true },
)
